Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate project to Dart 3 #262

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

orestesgaolin
Copy link

In an effort to bring it to runnable state here's a chunky PR that brings the following changes:

  • Migrate to Dart 3, update version constraints to require Flutter >=3.3.0 and SDK >=3.0.0
  • Migrate Android project to AGP8, set target and compile SDK to 34
  • Updated gitignore to keep lock files and Podfile in example app
  • Updated analysis_options.yaml
  • Cosmetic updates to example app
  • Set iOS deployment target to iOS 14
  • Set Android min SDK to 21

iOS working on physical device with locally deployed backend:

0630.mp4

Tested on Android as well:

0630.1.mp4

Some issues still pending:

  • upload progress is not emitted correctly for bigger uploads
  • failed upload is not handled correctly for bigger uploads

Tests passing locally

❯ flutter test
00:01 +11: All tests passed!

Closes #261
Closes #255
Closes #235
Closes #260
Closes #258
Closes #249

Copy link

@charafau charafau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just few comments, thank you for updating the project 💙

@@ -8,7 +8,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:4.2.1'
classpath 'com.android.tools.build:gradle:8.0.2'
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should increase the agp plugin, I'd prefer to use the newest 8.5.0 if flutter supports it, if not the highest supported version would be great

android/build.gradle Outdated Show resolved Hide resolved
example/android/app/build.gradle Outdated Show resolved Hide resolved
@@ -62,8 +73,4 @@ flutter {
dependencies {
def multidex_version = "2.0.1"
implementation "androidx.multidex:multidex:$multidex_version"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

api 21, we dont need this anymore

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-all.zip
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we try with newer gradle?

8.7 should be good distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip

example/ios/Podfile Show resolved Hide resolved
example/lib/main.dart Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants